<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="xt.css">
</head>
<body>
    <h1>订单付款确认页面</h1>
    <script>
        let name = prompt('商品名称')
        let price = prompt('商品价格')
        let num = prompt('商品数量')
        let total = price * num
        let address = prompt('收货地址')
        document.write(`
            <table >
                <tr>
                    <th>商品名称</th>
                    <th>商品价格</th>
                    <th>商品数量</th>
                    <th>商品总价</th>
                    <th>收货地址</th>
                </tr>
                <tr>
                    <td>${name}</td>
                    <td>${price}</td>
                    <td>${num}</td>
                    <td>${total}</td>
                    <td>${address}</td>
                </tr>
            </table>
        `)
    </script>
</body>

</html>